package com.quanyan.user.mapper;

import com.lefu.commons.utils.Page;
import com.quanyan.user.model.vo.response.RespTopic;
import com.quanyan.user.request.ReqNewsTopic;
import com.quanyan.user.response.RespNewsTopic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2016/11/22.
 */
public interface NewsTopicMapper {

    /**
     * 获取达人话题列表
     * @param page
     * @return
     */
     List<RespTopic> findAllTopicList (@Param("page") Page page);

    /**
     * 查询主题名字
     * @param list
     * @return
     */
    List<RespNewsTopic> findAllNewsTopic(@Param("page") Page page ,@Param("m") ReqNewsTopic reqNewsTopic);


    /**
     * 话题详情
     * @return
     */
    RespTopic findDetailTopic(@Param("topicId") Integer topicId);


    List<RespTopic> findDetailTopicBatch(@Param("list") List<Integer> lstTopicId);


}
